package com.hgxd.controller;

import com.hgxd.result.Result;
import com.hgxd.service.IDrawingManageService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author wtf
 * @create 2023-10-18 17:22
 * @description :
 */
@RestController
@RequestMapping("/api")
@Api(tags = "测试")
public class TestController1 {
    @Resource(name = "DrawingManageServiceImpl")
    private IDrawingManageService drawingManageService;

    @GetMapping("/C")
    public String C (){
        return "C";
    }
    @GetMapping("/WJL")
    public Result<String> WJL(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String urlString = "wjl.jpg";
        return drawingManageService.download(request,response,urlString);
    }
}
